﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//1、猫、狗、鸭、猴，（吃、游泳、爬树）
//父类动物 name 都会吃 

namespace Demo02
{
    class Program
    {
        static void Main(string[] args)
        {
            Animals animals = new Animals("鸭","吃");
            animals.Info();
            Duck duck = new Duck();
            duck.swim();
            Console.WriteLine("----------------");
            Animals animals1 = new Animals("狗", "吃");
            animals1.Info();
            Dog dog = new Dog();
            dog.swim();
            Console.WriteLine("----------------");
            Animals animals2 = new Animals("猴子", "吃");
            animals2.Info();
            Monkey monkey = new Monkey();
            monkey.climb();
            Console.WriteLine("----------------");
            Animals animals3 = new Animals("猫", "吃");
            animals3.Info();
            Cat cat = new Cat();
            cat.climb();
            Console.ReadKey();
        }
    }
}
